<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/extra.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->
        
        <div class="clearfix"></div>
			
        <?php
        $this->widget('application.extensions.mbmenu.MbMenu',array(
            'items'=>array(
                array('label'=>'Home','url'=>array('site/index')),
                array('label'=>'Acessar','url'=>array('site/login'),'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Cadastre-se','url'=>array('site/cadastro'),'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Administrar','items'=>array(
                    array('label'=>'Questionários','url'=>array('admin/questionario/admin')),
                    array('label'=>'Eixos','url'=>array('admin/eixo/admin')),
                    array('label'=>'Usuários','url'=>array('admin/usuario/admin'))
                ),'visible'=>Yii::app()->user->isAdmin),
                array('label'=>'Relatórios','items'=>array(
                    array('label'=>'Imprimir Questionário','url'=>array('admin/questionario/imprime')),
                ),'visible'=>Yii::app()->user->isAdmin),
                array('label'=>'Sobre','url'=>array('site/page','view'=>'sobre')),
                array('label'=>'Contato','url'=>array('site/contato')),
                array('label'=>'Sair','url'=>array('site/logout'),'visible'=>!Yii::app()->user->isGuest),
            ),
        ));
        ?>
        
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
            
        <?php if(Yii::app()->user->hasFlash("sucesso")): ?>
            <div class="flash-success" style="margin: 10px;">
                <?php echo Yii::app()->user->getFlash("sucesso"); ?>
            </div>
        <?php endif; ?>

        <?php if(Yii::app()->user->hasFlash("erro")): ?>
            <div class="flash-error" style="margin: 10px;">
                <?php echo Yii::app()->user->getFlash("erro"); ?>
            </div>
        <?php endif; ?>

        <?php if(Yii::app()->user->hasFlash("aviso")): ?>
            <div class="flash-notice" style="margin: 10px;">
                <?php echo Yii::app()->user->getFlash("aviso"); ?>
            </div>
        <?php endif; ?>

	<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
            <div class="span-9" style="margin-top: 8px;">
                <em>Framework</em> para Análise Diagnóstica. <br/>
                Alunos: Gabriel Ulian Briganó; Fernando Henrique Gaffo. <br/>
                Orientador: Dr. Rodolfo Miranda de Barros.
            </div>
            <div class="span-13">
                <div style="text-align: center;" class="span-3"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/logo-gaia.jpg', 'GAIA - Soluções em TI',array('height'=>'50px')); ?></div>
                <div style="text-align: center;" class="span-3"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/logo-gerti.png', 'GERTI - Gerenciamento de Serviços de TI',array('height'=>'50px')); ?></div>
                <div style="text-align: center;" class="span-3"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/logo-dc.jpg', 'UEL - Universidade Estadual de Londrina',array('height'=>'50px')); ?></div>
                <div style="text-align: center;" class="span-3"><?php echo CHtml::image(Yii::app()->request->baseUrl . '/images/logo-uel.jpg', 'UEL - Universidade Estadual de Londrina',array('height'=>'50px')); ?></div>
                <div class="clear"></div><br />
            </div>
	</div><!-- footer -->
       
</div><!-- page -->

</body>
</html>
